#ifndef SHAREDFILELIST_H_
#define SHAREDFILELIST_H_

#include <vector>
#include <string>

struct sharedFile{
	int userID;
	std::string path;
};

class SharedFileList {

private:

	std::vector<sharedFile> list;

public:

	SharedFileList();

	virtual ~SharedFileList();

	size_t getSize();

	/*
	 * fileNum: number of the file
	 *
	 * Returns the path of the shared file
	 *
	 * If fileNum is not valid, returns empty string
	 *
	 * */
	const char* getFileName(size_t fileNum);


	/*
	 * fileNum: number of the file
	 *
	 * Returns the user ID that shared that file
	 *
	 * If fileNum is not valid, returns -1
	 *
	 * */
	int getUserID(size_t fileNum);


	/*
	 * add the file to the list
	 *
	 * */
	void pushBack(int userID, std::string &path);


	void clear();


};

#endif /* SHAREDFILELIST_H_ */
